package thread;





public class TestThread extends Thread {
    @Override
    public void run() {
        System.out.println("run run run is "  + this.isAlive() );
    }

    public static void main(String[] args) {
        MyObject object=new MyObject();
        ThreadA a=new ThreadA(object);
        a.setName("a");
        ThreadA b =new ThreadA(object);
        b.setName("b");
        a.start();
        b.start();
    }
}
